<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function f() {
            var count = 0;
            for (var i = 100; i <= 200 ; i++) {
                if (i % 10 == 3) {
                    count++;
                }
                if (i % 100 == 33) {
                    count++;
                }
                console.log("一共有"+count+"个3");
            }
            f();
        }
    </script>
</head>
<body>

</body>
</html>